// 封装评价管理相关接口
import request from '@/utils/request'

// 获取评价列表数据
export const getEvaluateListService = ({ pageSize, page }) => {
  return request({
    url: '/api/evaluate/list',
    method: 'GET',
    params: {
      pageSize,
      page
    }
  })
}

// 评价列表搜索功能实现
export const searchEvaluateService = (data) => {
  return request({
    url: '/api/evaluate/search',
    method: 'GET',
    params: {
      data
    }
  })
}

// 删除用户评价
export const deleteEvaluateService = (id) => {
  return request({
    url: `/api/evaluate/del/${id}`,
    method: 'DELETE'
  })
}
